<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8" import="java.util.*,cn.school.entity.*,cn.school.service.*,cn.school.dao.*,cn.school.util.*" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
<table border="1">
<%
StudentService s=new StudentService();
List<Student> l=s.findALL();%>
<tr><td>姓名</td><td>性别</td><td>入学日期</td></tr>
<%
for(Student o:l){
%>
<tr>
<td><%=o.getSname() %></td><td><%=o.getSex() %></td><td><%=o.getEnterdate() %></td></tr>
<%}%>
</table>
</body>
</html>